﻿package mortal.game.net.command.gem
{
    import Framework.MQ.*;
    import Message.Command.*;
    import Message.Game.*;
    import com.gengine.debug.*;
    import mortal.game.cache.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.mvc.core.*;

    public class ForgingCommand extends BroadCastCall
    {

        public function ForgingCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            var _loc_2:SJewelHolesInfoMsg = null;
            Log.debug("I have receive ForgingCommand");
            super.call(param1);
            switch(param1.messageHead.command)
            {
                case EGateCommand._ECmdGateJewelHole:
                {
                    _loc_2 = param1.messageBase as SJewelHolesInfoMsg;
                    Cache.instance.forging.updateGemData(_loc_2);
                    NetDispatcher.dispatchCmd(ServerCommand.ForgingGemInfoUpdate, _loc_2);
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

    }
}
